package com.mpyy.service.systemSetting;

import com.mpyy.dao.systemSetting.MemberDao;
import com.mpyy.pojo.CustomerInfo;
import com.mpyy.pojo.Paging;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @PackageName:com.mpyy.service.systemSetting
 * @ClassName:MemberService
 * @Date:2022-03-07:11:02
 * @Author: Tang Neng
 */
@Service("memberServiceImpl")
public class MemberServiceImpl implements MemberServiceInter{
    @Autowired
    private MemberDao memberDao;
    @Override
    public List<CustomerInfo> searchMemberInfo(String custName , Paging paging) {
        return memberDao.searchMemberInfo(custName , paging);
    }

    @Override
    public int updataMemberInfoAdd(CustomerInfo customerInfo) {
        return  memberDao.updataMemberInfoAdd(customerInfo);
    }

    @Override
    public int updataMemberInfoDelect(String custId) {
        return memberDao.updataMemberInfoDelect(custId);
    }

    @Override
    public int updataMemberInfo(CustomerInfo customerInfo) {
        return memberDao.updataMemberInfo(customerInfo);
    }
}
